package routers

import (
	"BeegoWeb/controllers"

	"github.com/astaxie/beego"
)

func init() {
	beego.Router("/index", &controllers.MainController{}, "post:Post")
	beego.Router("/", &controllers.MainController{})
	beego.Router("/index1", &controllers.MainController{}, "get:Get")
	beego.Router("/index2", &controllers.MainController{}, "*:Get")
	// beego.Router("/test", &controllers.TestControler{}, "get:Get;post:Post")
	// beego.Router("/test_input", &controllers.Test_InputController{}, "get:Get;post:Post")
	// beego.Router("/test_login", &controllers.Test_loginController{}, "get:Login;post:Post")
	// beego.Router("/testModel", &controllers.Test_ModelController{}, "get:Get;post:Post")
	// beego.Router("/testModel2", &controllers.TestModel2Controller{}, "get:Get;post:Post")
	beego.Router("/logins", &controllers.LoginController{}, "get:Get;post:Post")
	beego.Router("/register", &controllers.RegisterController{}, "get:ShowRegister;post:HandleRegister")
	beego.Router("/login", &controllers.LoginController{}, "get:ShowLogin;post:HandleLogin")
	beego.Router("/upload", &controllers.UploadController{}, "get:ShowUpload;post:HandleUpload")
	beego.Router("/download", &controllers.DownloadController{}, "get:ShowDownload;get:HandleDownload")

}
